﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/BMP_List.master" AutoEventWireup="true" ResponseEncoding="utf-8"
    CodeFile="SendMore2.aspx.cs" Inherits="Pages_GPRS_SendMore" %>

<asp:Content ID="contentHeader" ContentPlaceHolderID="head" runat="Server">
<style type="text/css">
    #listsearch {width:32% !important;}
</style>
</asp:Content>
<asp:Content ID="contentSearch" ContentPlaceHolderID="contentPlaceHolderToolBar" style="width:30% !important"
    runat="Server">
    
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers="false" UpdateMode="Conditional">
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="ddlCity"></asp:AsyncPostBackTrigger>
        </Triggers>
        <ContentTemplate>
            <asp:DropDownList ID="ddlCity" runat="server" Field="Equip_City" Width="100px" AutoPostBack="True"
                OnSelectedIndexChanged="ddlCity_SelectedIndexChanged">
            </asp:DropDownList>
            <asp:DropDownList ID="ddlDistrict" runat="server" Width="100px" Field="Equip_County">
            </asp:DropDownList>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
<asp:Content ID="contentMain" ContentPlaceHolderID="contentPlaceHolder" runat="Server" >
    <fieldset style="margin-top: 1px;">
        <legend></legend>
        <table>
            <tr>
                <td>
                    <asp:TextBox runat="server" TextMode="MultiLine" ID="txtMessage" Width="400px" Height="100px"></asp:TextBox>
                </td>
                <td style="padding-left:50px">
                    <table>
                        <tr><td align="center">
                            <asp:DropDownList ID="ddlTimes" runat="server" width="100px">
                                <asp:ListItem Text="发送1次" Value="1"></asp:ListItem>
                                <asp:ListItem Text="发送2次" Value="2"></asp:ListItem>
                                <asp:ListItem Text="发送3次" Value="3" Selected="True"></asp:ListItem>
                                <asp:ListItem Text="发送4次" Value="4"></asp:ListItem>
                                <asp:ListItem Text="发送5次" Value="5"></asp:ListItem>
                                <asp:ListItem Text="发送6次" Value="6"></asp:ListItem>
                                <asp:ListItem Text="发送7次" Value="7"></asp:ListItem>
                                <asp:ListItem Text="发送8次" Value="8"></asp:ListItem>
                                <asp:ListItem Text="发送9次" Value="9"></asp:ListItem>
                            </asp:DropDownList>
                  
      
      <br />   <br />
                           </td> 
                        </tr>
                        <tr><td>&nbsp;&nbsp;发送时间： <input id="txtSendDate" type="text" onfocus="WdatePicker({dateFmt:'yyyy-M-d H:mm:ss',minDate:'%y-%M-%d'})"
                         des="发送时间"
                    exp="reg_DateTime" runat="server" clientidmode="Static" /><br /><br /></td></tr>
                        <tr><td align=center>
                            <asp:Button Text="向选中设备发信息" runat="server" ID="btnReply" OnClick="btnSend_Click" width="160px"  />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </fieldset>
    <asp:GridView ClientIDMode="Static" ID="gvInfos" runat="server">
        <Columns>
            <asp:TemplateField ItemStyle-Width="50">
                <HeaderTemplate>
                    <input id="cbhALL" type="checkbox" onclick="SelectAll('gvInfos', this, 'cbItem');" /><label
                        for="cbhALL"></label>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:CheckBox ID="cbItem" runat="server" />
                </ItemTemplate>
            </asp:TemplateField>
             <asp:BoundField DataField="Equip_SimNo" SortExpression="Equip_SimNo" HeaderText="设备内SIM卡号" />
            <asp:BoundField DataField="Equip_City" SortExpression="Equip_City" HeaderText="市" />
            <asp:BoundField DataField="Equip_County" SortExpression="Equip_County" HeaderText="县（区）" />
            <asp:BoundField DataField="Equip_Town" SortExpression="Equip_Town" HeaderText="乡（镇、社区）" />
            <asp:TemplateField HeaderText="类型" SortExpression="Equip_Class">
                <ItemTemplate>
                    <%#  GetTextByValue(DataBinder.Eval(Container.DataItem, "Equip_Class").ToString(), "Equip_Class")%>
                </ItemTemplate>
            </asp:TemplateField>
            
            <asp:BoundField DataField="Ext" SortExpression="Ext" HeaderText="备注" />
          
        </Columns>
    </asp:GridView>
</asp:Content>
